<template>
  <page-wrap back hide-tab title="结果页" stay-still>
    <view class="all">
      <img :src="imgSmile" />
      <view class="big">{{ onlySend == "1" ? "保存成功" : "发送成功" }}</view>
      <view class="small"
        >邮件{{
          onlySend == "1" ? "保存" : "发送"
        }}有短暂延迟，请您耐心等待，生成的简历会</view
      >
      <view class="small">同步在“我的”-“编辑简历”-“附件简历”中</view>
      <view class="return" @click="returnBack">返回预览简历</view>
      <view class="return return2" @click="returnHome">返回主页</view>
    </view>
  </page-wrap>
</template>

<script>
import ShareMixin from "@/mixins/share";
import { personSaveAttachment } from "@/api/modules/resumeCreate";
export default {
  mixins: [ShareMixin],

  data() {
    return {
      imgSmile: this.$imgBase + "resume/smile.png",
      onlySend: "0",
    };
  },
  onLoad(option) {
    this.onlySend = option.onlySend;
  },
  methods: {
    returnBack() {
      uni.navigateBack({
        delta: 1,
      });
    },

    returnHome() {
      uni.reLaunch({
        url: `/pages/userCenter/index`,
      });
    },
  },
};
</script>

<style lang="scss">
$img-base-login: $img-base + "login/";
.all {
  display: flex;
  flex-direction: column;
  align-items: center;
  img {
    width: 300rpx;
    height: 300rpx;
  }
  .big {
    margin-top: 20rpx;
    margin-bottom: 40rpx;
    font-size: 28px;
    font-weight: 600;
  }
  .small {
    margin-top: 20rpx;
    font-weight: 600;
  }
  .return {
    margin-top: 60rpx;
    width: 620rpx;
    height: 100rpx;
    line-height: 100rpx;
    text-align: center;
    color: #fff;
    background: #f75a3e;
    border: 1px solid #f75a3e;
  }
  .return2 {
    margin-top: 20rpx;
    background: #fff;
    color: #f75a3e;
  }
}
</style>
